import numpy as np
import cv2

red_lower1 = np.array([0, 43, 46])
red_upper1 = np.array([6, 255, 255])  # 设置红色区间1

red_lower2 = np.array([177, 43, 46])
red_upper2 = np.array([180, 255, 255])  # 设置红色区间2

green_lower = np.array([37, 43, 46])
green_upper = np.array([85, 255, 255])  # 设置绿色区间

blue_lower = np.array([100, 43, 46])
blue_upper = np.array([115, 255, 255])  # 设置蓝色区间

yellow_lower = np.array([18, 43, 46])
yellow_upper = np.array([34, 255, 255])  # 设置黄色区间

text_lower = np.array([0, 0, 30])
text_upper = np.array([200, 43, 70])  # 设置test区间

# 全局变量定义
pwm_value1 = 1500
pwm_value2 = 1950

systick_ms_bak = 0
# 使用之前,如果连接了摄像头，需要先关闭mjpg进程 ps -elf|grep mjpg  找到进程号，杀死进程  sudo kill -9 xxx   xxx代表进程号

width = 320
height = 240

